﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;
using System.Data;

namespace IHISCETeim.Web.AgentSys.VipMgr
{
    public partial class VIPBuyDetailLookUpList : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataBind();
        }
        protected string ItemCode
        {
            get
            {
                return GetRequestValue<string>("ItemCode", "");
            }
        }
        protected string onreturn
        {
            get {
                return GetRequestValue<string>("onreturn", "onItemSelectClick");
            }
        }
        protected void DataBind()
        {
            string showtype = GetRequestValue<string>("itmsGrpCod", "102");
            DataTable dt = null;

            if (showtype == "101")
            {
                dt = SBOController.GetYanCaiLiaoOITM(ItemCode, 40);
            }
            if (showtype == "102")
            {
                dt = SBOController.GetPaiJinOITMList(ItemCode, 40);
            }


            //if (dt == null)
            //    return ;

            this.rpMenu.DataSource = dt;
            this.rpMenu.DataBind();



        }
    }
}